﻿using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.MODEL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for FIM_MAS_Banks
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FIM_MAS_Banks : System.Web.Services.WebService
    {
        IBLL_FIM_MAS_Banks bank = new B_FIM_MAS_Banks();
        IBLL_FIM_MAS_BankBranchs branch = new B_FIM_MAS_BankBranchs();

        [WebMethod]
        public List<M_FIM_MAS_Banks> GetBankList()
        {
            return (List<M_FIM_MAS_Banks>)bank.GetList();
        }

        [WebMethod]
        public List<M_FIM_MAS_BankBranchs> GetBankBranchList(string bank_seq)
        {
            return (List<M_FIM_MAS_BankBranchs>)branch.GetList(bank_seq);
        }
    }
}
